Skip to content

ci: migrate PyPI release publishing workflow to OSS Exit Gate - #223

Closed
zarturod wants to merge 1 commit into
googlefonts:mainfrom
zarturod:chore/oss-exit-gate-migration
Closed

zarturod wants to merge 1 commit into
googlefonts:mainfrom
zarturod:chore/oss-exit-gate-migration

Conversation

@zarturod

Copy link
Copy Markdown

Summary

Migrates axisregistry PyPI publishing in the publish-to-pypi job of .github/workflows/publish-release.yml to publish through Google's OSS Exit Gate (axisregistry/pypi). check-rust-ok, build (including GitHub Release creation), check-tagging, publish-rust, and upstream-subtree-merge remain unchanged.

Changes

  • Scopes publish-to-pypi permissions to contents: read and id-token: write, and pins workflow actions to 40-character commit SHAs (google-github-actions/auth, google-github-actions/setup-gcloud) with persist-credentials: false on checkouts for zizmor compliance.
  • Authenticates via Google Cloud Workload Identity Federation (projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).
  • Stages built axisregistry distributions (dist/*) to https://us-python.pkg.dev/oss-exit-gate-prod/axisregistry--pypi/ and uploads manifest.json to gs://oss-exit-gate-prod-projects-bucket/axisregistry/pypi/manifests/ to trigger the OSS Exit Gate PyPI release pipeline (trusted publisher service account: axisregistry-py@oss-exit-gate-prod.iam.gserviceaccount.com).

Verification (Step 8 Production Smoke Test)

  • Production onboarding config (axisregistry/pypi, http://cl/1019238815) and Terraform provisioning (http://cl/1019365978) are live.
  • End-to-end Artifact Registry PyPI staging (axisregistry==0.4.20, HTTP 200) and GCS manifest upload (HTTP 200) verified.

Refs: b/582363049, b/576680589

@zarturod

Copy link
Copy Markdown
Author

Closing this PR per our internal Google OSS Exit Gate repository scope review. Apologies for the noise!

@zarturod zarturod closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant